<%--
  Created by IntelliJ IDEA.
  User: 邹敦宇
  Date: 2021/3/3
  Time: 19:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>品牌管理</title>
    <%
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
    %>
    <base href="<%=basePath%>">
    <link rel="stylesheet" href="static/layui/css/layui.css">
    <link rel="stylesheet" href="static/css/font-awesome-4.7.0/Font-Awesome-master/css/font-awesome.min.css">
    <style>
        .imgDiv{
            margin: 0 auto;
            width:300px;
            height:100px;
        }
        .imgDiv img{
            width: 100%;
            height: 100%;
        }
        .layui-table-cell{
            text-align:center;
            height: auto;
            line-height: 50px;
        }
        .inMiddle{
            margin-top: 50px;
        }
    </style>
</head>
<body>
<button class="layui-btn layui-btn-lg layui-btn-normal" id="add"><span class="layui-icon layui-icon-addition"></span></button>

<table id="demo" lay-filter="test"></table>



<%--模态框--%>
<div  id="model" style="display:none;position: relative;">
    <div class="inMiddle">
    <br>
    <div class="imgDiv">
        <img id="img">
    </div>
    <br>
    <form class="layui-form" action="">
        <input type="hidden" name="id" id="id">
        <div class="layui-form-item">
            <label class="layui-form-label">产品图片</label>
            <div class="layui-input-inline">
                <button type="button" name="file" class="layui-btn" id="file">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
                    <input type="hidden" name="brandImg" id="imgUrl">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">品牌名</label>
            <div class="layui-input-inline">
                <input type="text" name="brandName" required id="name"  lay-verify="required" placeholder="请输入品牌名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品类型</label>
            <div class="layui-input-inline">
                <select name="brandType" lay-verify="required" id="type">
                    <option value="">请选择</option>

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    </div>
</div>

<script src="static/js/jquery-3.5.1.min.js"></script>

<script src="static/layui/layui.js"></script>
<script src="static/js/brand.js"></script>
</body>
</html>
